﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

#pragma warning disable CA1814 // Prefer jagged arrays over multidimensional

namespace Electric.EntityFrameworkCore.DbMigrations.Migrations
{
    /// <inheritdoc />
    public partial class init : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.CreateTable(
                name: "ElePermission",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Code = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Url = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Component = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Icon = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    PermissionType = table.Column<int>(type: "int", nullable: false),
                    ApiMethod = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Sort = table.Column<int>(type: "int", nullable: false),
                    ParentId = table.Column<Guid>(type: "uniqueidentifier", nullable: true),
                    Status = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_ElePermission", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleRole",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    NormalizedName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ConcurrencyStamp = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRole", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleUser",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    UserName = table.Column<string>(type: "nvarchar(450)", nullable: false),
                    NormalizedUserName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    Email = table.Column<string>(type: "nvarchar(450)", nullable: false),
                    NormalizedEmail = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    EmailConfirmed = table.Column<bool>(type: "bit", nullable: false),
                    PasswordHash = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    SecurityStamp = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: false),
                    ConcurrencyStamp = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    PhoneNumber = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    PhoneNumberConfirmed = table.Column<bool>(type: "bit", nullable: false),
                    TwoFactorEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
                    LockoutEnd = table.Column<DateTimeOffset>(type: "datetimeoffset", nullable: true),
                    LockoutEnabled = table.Column<bool>(type: "bit", nullable: false, defaultValue: false),
                    AccessFailedCount = table.Column<int>(type: "int", nullable: false),
                    FullName = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    Status = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUser", x => x.Id);
                });

            migrationBuilder.CreateTable(
                name: "EleRoleClaim",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    ClaimType = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    ClaimValue = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRoleClaim", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EleRoleClaim_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleRolePermission",
                columns: table => new
                {
                    RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    PermissionId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleRolePermission", x => new { x.RoleId, x.PermissionId });
                    table.ForeignKey(
                        name: "FK_EleRolePermission_ElePermission_PermissionId",
                        column: x => x.PermissionId,
                        principalTable: "ElePermission",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EleRolePermission_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleTodo",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    Name = table.Column<string>(type: "nvarchar(max)", nullable: false),
                    Status = table.Column<int>(type: "int", nullable: false),
                    Remark = table.Column<string>(type: "nvarchar(max)", nullable: true),
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    LastModificationTime = table.Column<DateTime>(type: "datetime2", nullable: true),
                    LastModifierId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleTodo", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EleTodo_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserClaim",
                columns: table => new
                {
                    Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    ClaimType = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false),
                    ClaimValue = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserClaim", x => x.Id);
                    table.ForeignKey(
                        name: "FK_EleUserClaim_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserLogin",
                columns: table => new
                {
                    LoginProvider = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    ProviderKey = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    ProviderDisplayName = table.Column<string>(type: "nvarchar(100)", maxLength: 100, nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserLogin", x => new { x.UserId, x.LoginProvider });
                    table.ForeignKey(
                        name: "FK_EleUserLogin_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserRole",
                columns: table => new
                {
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    RoleId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false),
                    CreatorId = table.Column<Guid>(type: "uniqueidentifier", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserRole", x => new { x.UserId, x.RoleId });
                    table.ForeignKey(
                        name: "FK_EleUserRole_EleRole_RoleId",
                        column: x => x.RoleId,
                        principalTable: "EleRole",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                    table.ForeignKey(
                        name: "FK_EleUserRole_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.CreateTable(
                name: "EleUserToken",
                columns: table => new
                {
                    UserId = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
                    LoginProvider = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    Name = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: false),
                    Value = table.Column<string>(type: "nvarchar(max)", nullable: false)
                },
                constraints: table =>
                {
                    table.PrimaryKey("PK_EleUserToken", x => new { x.UserId, x.LoginProvider, x.Name });
                    table.ForeignKey(
                        name: "FK_EleUserToken_EleUser_UserId",
                        column: x => x.UserId,
                        principalTable: "EleUser",
                        principalColumn: "Id",
                        onDelete: ReferentialAction.Cascade);
                });

            migrationBuilder.InsertData(
                table: "ElePermission",
                columns: new[] { "Id", "ApiMethod", "Code", "Component", "CreationTime", "CreatorId", "Icon", "LastModificationTime", "LastModifierId", "Name", "ParentId", "PermissionType", "Remark", "Sort", "Status", "Url" },
                values: new object[,]
                {
                    { new Guid("106e7f73-449f-4713-b752-ec483c7ef39b"), "GET", "system.permission.add", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7637), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("307c428a-364d-430e-b9f2-120dac918522"), 1, null, 0, 1, null },
                    { new Guid("1102390f-4049-4ac4-b50a-ef2871bcb736"), "GET", "system.role.delete", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7635), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("96e18985-bb73-4ace-9392-fa016e7128e3"), 1, null, 0, 1, null },
                    { new Guid("16fc2297-aa79-49df-83fa-aae521a8966b"), "GET", "system.permission.delete", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7642), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("307c428a-364d-430e-b9f2-120dac918522"), 1, null, 0, 1, null },
                    { new Guid("2a17c32e-9d88-4ba3-8ce0-de2acb2e4459"), "GET", "system.role.add", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7628), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("96e18985-bb73-4ace-9392-fa016e7128e3"), 1, null, 0, 1, null },
                    { new Guid("307c428a-364d-430e-b9f2-120dac918522"), "GET", "system.permission", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7608), new Guid("00000000-0000-0000-0000-000000000000"), "list", null, new Guid("00000000-0000-0000-0000-000000000000"), "菜单管理", new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), 0, null, 0, 1, null },
                    { new Guid("3d4bdf12-5649-4bbc-a5f6-b85b2367516a"), "GET", "system.rolepermission", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7610), new Guid("00000000-0000-0000-0000-000000000000"), "example", null, new Guid("00000000-0000-0000-0000-000000000000"), "角色权限", new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), 0, null, 0, 1, null },
                    { new Guid("4a3aa4ae-5a68-4a49-8887-fc70fee612b0"), "GET", "system.role.edit", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7632), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("96e18985-bb73-4ace-9392-fa016e7128e3"), 1, null, 0, 1, null },
                    { new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), "GET", "system", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7490), new Guid("00000000-0000-0000-0000-000000000000"), "el-icon-s-tools", null, new Guid("00000000-0000-0000-0000-000000000000"), "系统管理", null, 0, null, 0, 1, null },
                    { new Guid("6bf906ea-b6b5-4c4d-922a-0bcbfc2a21d9"), "GET", "system.user.edit", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7623), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("edbb719a-165d-4009-82fc-ecd4e4c763f3"), 1, null, 0, 1, null },
                    { new Guid("715a5c9d-03a8-41c9-aac4-622fbdb5208d"), "GET", "system.user.delete", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7625), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "删除", new Guid("edbb719a-165d-4009-82fc-ecd4e4c763f3"), 1, null, 0, 1, null },
                    { new Guid("8bff61cb-0a16-4321-8f3c-5f6cc03dc817"), "GET", "system.user.add", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7622), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "添加", new Guid("edbb719a-165d-4009-82fc-ecd4e4c763f3"), 1, null, 0, 1, null },
                    { new Guid("96e18985-bb73-4ace-9392-fa016e7128e3"), "GET", "system.role", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7605), new Guid("00000000-0000-0000-0000-000000000000"), "peoples", null, new Guid("00000000-0000-0000-0000-000000000000"), "角色管理", new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), 0, null, 0, 1, null },
                    { new Guid("df1e3da3-c9b7-489f-a338-166fba08edd6"), "GET", "system.permission.edit", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7638), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "编辑", new Guid("307c428a-364d-430e-b9f2-120dac918522"), 1, null, 0, 1, null },
                    { new Guid("edbb719a-165d-4009-82fc-ecd4e4c763f3"), "GET", "system.user", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7603), new Guid("00000000-0000-0000-0000-000000000000"), "el-icon-user-solid", null, new Guid("00000000-0000-0000-0000-000000000000"), "用户管理", new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), 0, null, 0, 1, null },
                    { new Guid("f5d0a09d-efbf-45e6-834c-c670a943f4ab"), "GET", "system.rolepermission.update", null, new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7643), new Guid("00000000-0000-0000-0000-000000000000"), null, null, new Guid("00000000-0000-0000-0000-000000000000"), "更新", new Guid("3d4bdf12-5649-4bbc-a5f6-b85b2367516a"), 1, null, 0, 1, null }
                });

            migrationBuilder.InsertData(
                table: "EleRole",
                columns: new[] { "Id", "ConcurrencyStamp", "CreationTime", "CreatorId", "LastModificationTime", "LastModifierId", "Name", "NormalizedName", "Remark", "Status" },
                values: new object[] { new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), "895f5430de374a66800cb1719005b18b", new DateTime(2024, 8, 17, 13, 31, 12, 887, DateTimeKind.Local).AddTicks(9253), new Guid("00000000-0000-0000-0000-000000000000"), null, new Guid("00000000-0000-0000-0000-000000000000"), "管理员", "管理员", null, 1 });

            migrationBuilder.InsertData(
                table: "EleUser",
                columns: new[] { "Id", "AccessFailedCount", "ConcurrencyStamp", "CreationTime", "CreatorId", "Email", "EmailConfirmed", "FullName", "LastModificationTime", "LastModifierId", "LockoutEnd", "NormalizedEmail", "NormalizedUserName", "PasswordHash", "PhoneNumber", "PhoneNumberConfirmed", "Remark", "SecurityStamp", "Status", "UserName" },
                values: new object[] { new Guid("4dd26f18-d750-4846-ba3b-c8b43a25d10e"), 0, "148f771dc3f744d08a997a9ea6699156", new DateTime(2024, 8, 17, 13, 31, 12, 887, DateTimeKind.Local).AddTicks(9411), new Guid("00000000-0000-0000-0000-000000000000"), "admin@eletric.com", true, "管理员", null, new Guid("00000000-0000-0000-0000-000000000000"), null, "ADMIN@ELETRIC.COM", "ADMIN", "AQAAAAIAAYagAAAAEP9i5oNDgEygXTJdnyCS/Yxtx+HWwO1fp5lum0zM9n5HRow/qkX/Udy/XAOdQW/ajg==", null, false, null, "c301f5ce-1772-4abf-9547-005180546943", 1, "admin" });

            migrationBuilder.InsertData(
                table: "EleRolePermission",
                columns: new[] { "PermissionId", "RoleId", "CreationTime", "CreatorId" },
                values: new object[,]
                {
                    { new Guid("106e7f73-449f-4713-b752-ec483c7ef39b"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7686), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("1102390f-4049-4ac4-b50a-ef2871bcb736"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7686), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("16fc2297-aa79-49df-83fa-aae521a8966b"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7688), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("2a17c32e-9d88-4ba3-8ce0-de2acb2e4459"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7685), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("307c428a-364d-430e-b9f2-120dac918522"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7681), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("3d4bdf12-5649-4bbc-a5f6-b85b2367516a"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7682), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("4a3aa4ae-5a68-4a49-8887-fc70fee612b0"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7685), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("65ceae01-dce0-4817-afd9-31793dd1013c"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7674), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("6bf906ea-b6b5-4c4d-922a-0bcbfc2a21d9"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7684), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("715a5c9d-03a8-41c9-aac4-622fbdb5208d"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7684), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("8bff61cb-0a16-4321-8f3c-5f6cc03dc817"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7683), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("96e18985-bb73-4ace-9392-fa016e7128e3"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7681), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("df1e3da3-c9b7-489f-a338-166fba08edd6"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7687), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("edbb719a-165d-4009-82fc-ecd4e4c763f3"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7680), new Guid("00000000-0000-0000-0000-000000000000") },
                    { new Guid("f5d0a09d-efbf-45e6-834c-c670a943f4ab"), new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7689), new Guid("00000000-0000-0000-0000-000000000000") }
                });

            migrationBuilder.InsertData(
                table: "EleUserRole",
                columns: new[] { "RoleId", "UserId", "CreationTime", "CreatorId" },
                values: new object[] { new Guid("40048ef5-2b88-4947-8cad-016cb5278a30"), new Guid("4dd26f18-d750-4846-ba3b-c8b43a25d10e"), new DateTime(2024, 8, 17, 13, 31, 12, 926, DateTimeKind.Local).AddTicks(7461), new Guid("00000000-0000-0000-0000-000000000000") });

            migrationBuilder.CreateIndex(
                name: "IX_ElePermission_CreationTime",
                table: "ElePermission",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleRole_CreationTime",
                table: "EleRole",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleRole_NormalizedName",
                table: "EleRole",
                column: "NormalizedName");

            migrationBuilder.CreateIndex(
                name: "IX_EleRoleClaim_RoleId",
                table: "EleRoleClaim",
                column: "RoleId");

            migrationBuilder.CreateIndex(
                name: "IX_EleRolePermission_PermissionId",
                table: "EleRolePermission",
                column: "PermissionId");

            migrationBuilder.CreateIndex(
                name: "IX_EleRolePermission_RoleId_PermissionId",
                table: "EleRolePermission",
                columns: new[] { "RoleId", "PermissionId" });

            migrationBuilder.CreateIndex(
                name: "IX_EleTodo_CreationTime",
                table: "EleTodo",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleTodo_UserId",
                table: "EleTodo",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_CreationTime",
                table: "EleUser",
                column: "CreationTime");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_Email",
                table: "EleUser",
                column: "Email");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_NormalizedEmail",
                table: "EleUser",
                column: "NormalizedEmail");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_NormalizedUserName",
                table: "EleUser",
                column: "NormalizedUserName");

            migrationBuilder.CreateIndex(
                name: "IX_EleUser_UserName",
                table: "EleUser",
                column: "UserName");

            migrationBuilder.CreateIndex(
                name: "IX_EleUserClaim_UserId",
                table: "EleUserClaim",
                column: "UserId");

            migrationBuilder.CreateIndex(
                name: "IX_EleUserLogin_LoginProvider_ProviderKey",
                table: "EleUserLogin",
                columns: new[] { "LoginProvider", "ProviderKey" });

            migrationBuilder.CreateIndex(
                name: "IX_EleUserRole_RoleId_UserId",
                table: "EleUserRole",
                columns: new[] { "RoleId", "UserId" });
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropTable(
                name: "EleRoleClaim");

            migrationBuilder.DropTable(
                name: "EleRolePermission");

            migrationBuilder.DropTable(
                name: "EleTodo");

            migrationBuilder.DropTable(
                name: "EleUserClaim");

            migrationBuilder.DropTable(
                name: "EleUserLogin");

            migrationBuilder.DropTable(
                name: "EleUserRole");

            migrationBuilder.DropTable(
                name: "EleUserToken");

            migrationBuilder.DropTable(
                name: "ElePermission");

            migrationBuilder.DropTable(
                name: "EleRole");

            migrationBuilder.DropTable(
                name: "EleUser");
        }
    }
}
